package rc.work.module.infra.controller.admin.onlyoffice.officehistory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import rc.work.framework.common.pojo.PageParam;

import java.time.LocalDateTime;

import static rc.work.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - onlyoffice历史记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OfficeHistoryPageReqVO extends PageParam {

    @Schema(description = "用户ID", example = "24243")
    private Long userId;

    @Schema(description = "服务器版本")
    private String serverVersion;

    @Schema(description = "文档KEY")
    private String docKey;

    @Schema(description = "文件下载地址", example = "https://localhost")
    private String fileUrl;

    @Schema(description = "文件地址")
    private String filePath;

    @Schema(description = "文件名称", example = "张三")
    private String fileName;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;



    private String fileId;
    private String tableName;

    private String fileSuffix;
}